<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://pontoclass.com.br/jstl/pclass" prefix="pclass" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ attribute name="visivel" required="false" rtexprvalue="true" type="java.lang.Boolean" %>
<%@ attribute name="id" required="false" rtexprvalue="true" type="java.lang.String" %>
<div>
	<c:if test="${(empty pageScope.visivel) or not pageScope.visivel}">
		<c:set value="visibility:hidden;" var="visibilityStyle"/>
	</c:if>
	<c:choose>
		<c:when test="${not empty pageScope.id}">
			<c:set value="${pageScope.id}" var="_id"/>
		</c:when>
		<c:otherwise>
			<c:set value="_DIVtelaMeio" var="_id"/>
		</c:otherwise>
	</c:choose>
	<div style="${pageScope.visibilityStyle}position:absolute; background:#fff; opacity:1; filter: alpha(opacity=100);
		        z-index: 10001; height:8%; width:16%;top:46%; left:42%;
		        border: <pclass:getAttribute name='cor_principal'/> solid 2px;" 
		        id="${pageScope['_id']}" align="center">
	    <table style="margin: 3px;">
	    	<tr>
	    		<td>
	    			<img alt='<spring:message code="application.popup.aguardeCarregamento" />' 
		     			 src="images/animacao_Aguarde.gif">
	    		</td>
	    		<td>
	    			<div style="font-size:16px;font-weight:bold;color:#000;">
	    				<spring:message code="application.popup.carregando" />
	    			</div>
	    		</td>
	    	</tr>
	    </table>
	</div>
</div>